<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			this.getPhoneHeight()
			this.$store.commit('GET_MENU_BUTTON')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			getPhoneHeight() { //获取高度
				let that = this;
				uni.getSystemInfo({
					success: function(res) {
						let headerTop = res.statusBarHeight * 2 + 'rpx'
						that.$store.dispatch('setHeaderTop', headerTop)
					},
				});
			},
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	/*每个页面公共css */
	@import "@/static/icon.scss"
</style>